@mixin disJA {
  flex-direction: column;
  display: flex;
  justify-content: center;
  align-items: center;
}
@function px2rem($px) {
  @return $px / 20 * 1rem;
}

.home {
  height: 100%;
  .header {
    color: #eee;
    // background: linear-gradient(90deg, #1f1c2c 0%, #928dab 100%);
    background: linear-gradient(223deg, #67b42e 8%, #7a8788 43%, #48512c 66%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    .header-right {
      display: flex;
      align-items: center;
      justify-content: space-evenly;
      .alter-box {
        width: px2rem(100);
        .alter-box-it {
          width: px2rem(40);
          color: #ffffff;
          position: relative;
          .alter-badge {
            font-weight: 200;
            @include disJA;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background-color: #ff4d4f;
            position: absolute;
            top: 10px;
            left: 44px;
          }
        }
      }
    }
    img {
      height: 58px;
      vertical-align: middle;
    }
    .user {
      font-size: 10px;
      &:hover {
        cursor: pointer;
        color: brown;
      }
    }
    span {
      font-size: 20px;
      padding: 0 20px;
    }
    .icon {
      color: rgba(0, 174, 255, 0.796);
      cursor: pointer;
      &:hover {
        color: brown;
      }
    }
  }
  .sider {
    color: #eee;
    // background: linear-gradient(0deg, #333333 0%, #37dfe8 100%);
    background: #48512c;
    .user-box {
      width: 256px;
      height: 143px;
      border: none;
      @include disJA;
      .user-img {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        border: 1px solid #eee;
        img {
          width: 50px;
          height: 50px;
          border-radius: 50%;
        }
      }
      span {
        margin-top: 4px;
        color: hsla(286, 100%, 50%, 0.582);
        width: 100px;
        text-align: center;
      }
    }
  }
  .content {
    background: #ffffff;
  }
}
